//
//  Common.swift
//  TMDWeiBo
//
//  Created by 汤明鼎 on 2017/1/16.
//  Copyright © 2017年 heimaitcast. All rights reserved.
//

import UIKit

let TMDScreenW = UIScreen.main.bounds.size.width
let TMDScreenH = UIScreen.main.bounds.size.height
let TMDMainColor = UIColor.orange
func RGB(r:Float,g:Float,b:Float,alpha:Float = 1)->UIColor{

    return UIColor(colorLiteralRed: r/255, green: g/255, blue: b/255, alpha: alpha)
}

func TMDRandomColor()->UIColor{

    let r = Float(arc4random()%256)
    let g = Float(arc4random()%256)
    let b = Float(arc4random()%256)
    
    return RGB(r: r, g: g, b: b)
}
